package com.cherrish.demo.algorithm.tree.bintree;

/**
 * @author cherrish
 * @time 2019-02-20 16:22
 * @name Node
 * @desc:
 */
public class Node {
    protected int data;
    protected Node left;
    protected Node right;

    public Node(int data) {
        this.data = data;
    }

    public void display(){
        System.out.println(this.data);
    }

    @Override
    public String toString() {
        return data + "";
    }
}
